package com.laojiang.useofsmall;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import net.wequick.small.Small;

/**
 * 启动页面
 */
public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        /**
         * 2. Small插件初始化
         */
        Small.setUp(MainActivity.this, new Small.OnCompleteListener() {
            @Override
            public void onComplete() {
                /**
                 * 3. 通过uri启动插件
                 */
                Small.openUri("main", MainActivity.this);
                finish();
            }
        });
    }
}
